keeps text entered when an error is encountered