Wrote basic validations for posts model