Add very basic user authentication support
Provide more error info on failure.