properly implemented backspace prevention