I would challenge the idea that single responsibility means can't do more than one thing. Several have shown the challenge of refactoring into this approach.
The db access I would argue isn't related to username validation. I mean if it isn't valid how does someone have it.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I would challenge the idea that single responsibility means can't do more than one thing. Several have shown the challenge of refactoring into this approach.
The db access I would argue isn't related to username validation. I mean if it isn't valid how does someone have it.