Added invalidation of form submission if fields are not complete