fixed registration
Added save purchases