added automatic login functionality and updated the API README