added parameters to signInSuccess and signInError