Number validation improved, based on widget type is validation done against int, long, double