Added transitions and Create/Login API calls through AJAX