Logout working correctly now