make sure roles are correct type