buyticket login functionality, fixed cross-ajax call bug in server