fixing logout alert