fixed error on login