updating aerogear.js to use validation endpoint