document post and validation