Logout correctly working now