Slight fix to the duration input validation method