fixed bug where validate would be applied to the window object on timeout