Added ajax call to validate qrcodes