Moving login/signup callbacks to appropriate success/error locations to provide access to states.