user index page function - next step AJAX login