Handle login failures better (display a notice instead of crashing).