show error when registration fails