Complex sentence: Upon logging in, the user has to provide both passwords to access the account as well as the encrypted mailbox and its private encryption key.
Split into simpler sentences: Upon logging in the user has to provide both passwords. This is to access the account and the encrypted mailbox and its private encryption key.