form accepts input and redirects home