Fixes #464. Verify if the user exists

When the user doesn't exist, the user object is null. Add verification and error message.