displaying errors in the register template