use angular-janrainerrors module to handle errors