change undefined session value to ''(empty string);