added validation for decimal