Add validations to check the size of the title and text