Login mechanism, exposed admin flag, general improvements