added validation on login page