added validation message for times.