amount_validator documented and refactored