Fix assumption that user will always be logged in in home.js