Implement userExists(). Fix some other things.