Added validation to login page