better way of preventing validation css