login form validation and errors