Access principal in success view

This fixes #669 
I'm not completely convinced by this method: it's a little too high level for beaing easily mainpulated in the views.