added post model validations