Added checks for unset post parameters