Implemented form validation for Login page