add jquery validation plugin and use jquery ui function