Remove getUserData() function and use getUsername() function.