improved the person type fields js validation