configurable login from yaml
replace curl for request lib