patched auth.php for login, doesnt seems to work inside _scripts