updated logout to be operatoin for users