Add check to see if time is a correct format