setting flash.type to 'error' ignores challenge.type