validator preventDefault on non forms