Fix redirection to home on invalid token