Fix home page not clearing on login success