changed redirection after creating pin