check for error in prompt, change color if there was an error