Better error message if user omits domain from username

This is an easy mistake but the user got an unhelpful error message

> IndexError: list index out of range

Better to see

> ValueError: username should be in 'domain\username' format.