added AppPassword and Secure foundation