How to avoid last-minute tax mistakes