moving logout method to routes/user
adding some comments