error and success callbacks of checkLogin fixed