Prevent login server errors

Stopping the 'server error' messages showing when you try to login and forget your password when saving a certificate.