Restrict submission when all the fields are not filled