Added login check on ajax requests.