timer and validate