Implemented `getUserData` to return the user array when given user name.