a jquery form validator and dom manipulator