clear input fields on error