Bug Fix: Redirect to the corresponding URL after logging in.