fixed error caused by incorrect login