Support a custom user.
Fixed all issues with custom user.
Merge pull request #17 from nearform/custom-user

Fixed all issues with custom user.