Added user validation to logout route