Fix warning for "undefined variable: user"
Merge pull request #9 from ilesinge/fix_user_warning

Fix warning for "undefined variable: user"