fix for logging in with duplicate name