Added null value handling for post variables