Only set form to invalid if it wasn't already.