added support for admin logins and private APIs