more fixes to login.php