#3 - added user details in $user key and changed token to $token.