added logout method to user