Fix homepage logged in/logged out issue