updated membership controller and changed membership type to role