fixed error handling on home page
thanks molly