Async Login and send array from jquery to server