Addded validation to posts