Fix login redirect

This fixes #78 .