Made login form errors overridable (issue #653)