modified login process to include client resource ID