Component logic for a REST call to get the current username for display in the Profile Modal