Validation non-model fields

I'd like to add a new field on my partial template witch is not
present in my database schema.
I'd like to validate it like others text_fields from my database. How
can I do it??