Access Control: fix login (#473).

No exception occurs if the user enters neither a username nor a password in the login dialog.

Close ticket 473.