add check

check is simple way to validate input
check(len(title) <= 256, 'title length ...', error_class=ValueError)
it will raise ValueError(message)