transaction, exception handling added (#1)
Merge pull request #13 from DonutWorks/fix/assign-user-to-history-validation

transaction, exception handling added (#1)