streamlined stuff in login.php