make sure that the correct user type is used to edit a user.
domainadmin vs user.
fixes #28