Fix signup page when leaving route