Fixed an issue with non-logged in users not being able to register