Added validations in comment and post models