use code from waitlist-plugin to switch user role