adding form validation on jQuery client, work in progress