UHM-937 - Add validation of duration field