fixing bug in auth_log user belongs to code