moved signInSuccess and Error in the application beforeModel method