fixed registration not saving!