bug fix: clear previous error message after showing them in forms