Removed ajax request check from authentication handler