added validation for decimal values