Fixes to LoginValidator.php