You may want to define LoginController and LogoutController as AMD modules.