updated login process, purchase not working right now