Jquery work, validation and dynamic creation of variables for sending