Refactoring for User persistence validator