minor  logout, error  fix