Use $user as specified

You specify $user in the example then use your username again in string form a few lines later. Should probably just reference $user in that case.