added has_valid_membership method to user