Added validations to title and post