index file with submitted form working