Fixed minor error

You tried to reference <code>user[0]</code> when <code>user</code> is a string, not an array!