added schema to posts, simple validations, before and after create model callbacks