more updates to topbar and added in logout method for user