Making authenticate.php follow our new standard