Fixes logged-out homepage bug and login redirect with Devise