checkout, invite friends, fixes for logins and constants