added back in event.preventDefault to see if it is the error