Fixed a compilation error and problems with authentication user interface