Set appropiate error on login cancel. Closes #3582