Add typehinting for validators