Refactor: using StringRequest class in order to catch the "ok" string.