changed data[user] to user