Removed testing preventDefault(). Empty and hide error messages.