fix: require_valid_user exception logic

Co-authored-by: Robert Newson <rnewson@apache.org>
2 files changed