refactoring remoteUser in user in session