Changed codes for decimal validation. 2 digits are allowed after decimal point and no repetition of dot.