calling the users' error and success callbacks