Fix response parsing. Added curl example of login