simpler check for POST data