add javascript field validation