Developing logout method for each page