add user accounts refactured