clear error after 3 seconds
added client side validation