adds helpers for authentication
completes the authentication and signin/signout process