update validateForm to v0.5