remove error message after successful validation