Added validation for fields of posts in its model
added validation for image urls
Merge branch 'dbtesting' into scaffolds