resolves issue with sign in, testing, fixes glitch on home page if Post model is empty