Step 8 and 9: Add code to query group membership at login and update web.config