created function setMembership

better authorisation handling
renamed class Account to Login