fix the empty password/username exception case