validate_dhms function

helper function to validate format of walltime inputs for HPC submission