added js validation to the login form