I'm getting stumped... The scripts seem to be perfectly fine, the user database seem to be intact, and the user information is loaded correctly. I can't think of any reason why this wouldn't work. The "gid" value is what is used to check if the user is logged in and if they are a normal user or an admin.