work from a hash for user attributes