Bug fixes around passcode manager and admin prefs manager