Moved the place that the username is fetched from the server so it'll work