I've updated the example to sanitize the value and throw an exception in case the user is not found