fixed log in validation after js validation for the login form