added client validation for login form