added docs for onLogoutHook and onSubmitHook