Fix redirect problem with signing in.