# Validation `Unicorn` uses Django `forms` infrastructure for all validation. This means that a form could be re-used between any other Django views and a `Unicorn`. Using the Django `forms` system provides a way to serialize/deserialize certain classes (for example, `datetime` and `uuid`) and a way to validate properties of a class. ```{note} There are many [built-in fields available for Django form fields](https://docs.djangoproject.com/en/stable/ref/forms/fields/#built-in-field-classes) which can be used to validate text inputs. ``` ```python # book.py from django_unicorn.components import UnicornView from django import forms class BookForm(forms.Form): title = forms.CharField(max_length=100, required=True) publish_date = forms.DateField(required=True) class BookView(UnicornView): form_class = BookForm title = "" publish_date = "" ``` ```html