failed authentication return error