Applied Flask-WTForms for API validation.