Added logout functionality from the drawer function