now the buy button redirects properly seeing if the user is loged or not