changed to work with json username password php provider