Fixed an issue that caused authentication with password to fail.