Modification on decimal input validation