Implemented Login form validation