Fixed bug where an empty password would raise an exception