Added post parameter validation