title and text validations for posts