Add validation to login page