add hasMember function to check user