Fixed the models. Removed leader_id from Group and added leader boolean to Member. Then added the new leader check to the controllers and form.