working get request and array input comparison