added time input limits