Modified validation in login page