Updates user_access query in authenticate.php