fixing logout