show an error alert when the register call fails