Added AuthorizationController and set cookies