Fixed form function on home page