Made form work and redirect