fix redirect after registering, fixes #16