Fixed typo and added userCredential parameter for redirect
fixed typo