Updated time input validation