Added client-side validation in login form