add login validation for login form