Check for empty login and password (fix #23)