check post variables

check if set variables,
to avoid unknown variable errors.