Fixed searching for users.
Added automatic logging with localSettings credentials