Fix log in validation.