New authentication API & email admins on errors