Added javascript validation to integer and float widgets.