Fixed API issue with passwords as suggested by Alex.