refactor modal for logged in or not into partial