added logout method
added logout method