Some security check in ajax process