Fix registration for users not logged in

Weston