Add after_authentication hook