Anonymous or Unauthenticated user visits the site and clicks the "Join" button to join a group. Since there is no user account to associate with, the functionality will fail.
Solution
Allow anonymous and unauthenticated users to click the "Join" button. Upon clicking the button, the user should be greeted with sign up page. Optionally, they should be able to click the log in link and not break the process.
After either registering or logging in the user's account should be automatically associated with the group originally "Joined" by the user.
Problem
Anonymous or Unauthenticated user visits the site and clicks the "Join" button to join a group. Since there is no user account to associate with, the functionality will fail.
Solution
Allow anonymous and unauthenticated users to click the "Join" button. Upon clicking the button, the user should be greeted with sign up page. Optionally, they should be able to click the log in link and not break the process.
After either registering or logging in the user's account should be automatically associated with the group originally "Joined" by the user.