Refactor SessionsController#index