added validation for currency amount