fixed logged-in after registration