Implemented validation for Log in page