Add some layout and logic for autheticate to purchase