fix string when wrong password code is encountered