fix anonymous registration (re #320) and redirect to frontpage after register