the rsLoggeduser recordset is not returning the correct result.
you have it set to filter the user id column on the userID session variable, but the name of the session created by security assist is:
SecurityAssist_UserID
You need to use that session in the recordset instead.