Adding validation on model post
Update posts controller