don't redirect after login if it is an ajax request