update promptInvalid

Not sure if this will work. May have to pass in more variables.