error in auth controller