Fix check of post variable