Basic functioning form validation for login and dispaly of errors