Made the server configurable (to work with Enterprise installations).
Print an error if auth fails.