Adding oauth2.LoginRequired handler.