bug fixed in $user_type string computation