adding post validation