null check on home page