added fix to login.php