WIP refactoring verifyUser