flexi-01 Updated with jquery/couch login