Fixing bug where password is not actually used