I have a function that does validation for a few categories of input, let\'s say for example username and email.
I would like to split the validation out into separat