succesfully posted login information to the login api call and handled response