error message after registration try/catch