validations for title and text presence on database

validations for title and text presence on database