Add Ajax login and redirect.