time input almost working