rescue json parser error to reset session and redirect to login