Rewrite the Authtication