Fix not returning response when using API with a bad password. Closes #5...

...70