fixes logout route bug