when user submit the login form: 1. verify it on the client side, 2. try to login the user to the first api, 3. if login fails try to login the user to second api, 4 if login fails show error message
- create a login html form
- call all the relevenat scipts + call query
- set hte plugin acording to your login from fileds id, you can call the pligin function with the relevant from fileds id as the plugin use jQuery.extend function to allow you to run over the default settings