Fixed error mesage on login box

Fixes bug #806