[Modify] handle error; redirect to login