AJAX call when security token expired addressed

Amol’s fix to push user to login page when AJAX call made when token
expired