prevent page refresh on submitting invitation form