Fixed LoginCtrl error handling

Closes #25