refactoring new/edit user and email conf for pass reset