auth.php huge change