[IN-PROGRESS] added the purchase and login methods