added validations and error messsages for login page