changed redirect() to be 302.