logut working