Correct handling of error BadPassword