Ok. After your update I advise you to read more about authentication by tokens. In comments to your question you can find mention of JWT token, also you can read about OAuth algorithm or smth else. As far as you use your server only as an API it's the best solution to use tokens for requests authentication. But now for fastest development I advise you to return user id after authorization.
Change authorization code part with response to this:
if (isset($check)) {
echo json_encode($check);
}
Now you will get all user data after authorization as JSON string. Save user ID and pass it to the next request as GET param or header so you'll be able to determine on the server side which user executes this request. You can get user ID from GET param from global $_GET
variable like this:
$loggedInUserId = $_GET['userId'];
Or from the header:
$loggedInUserId = $_SERVER['LOGGED_IN_USER_ID'];
And then you can use this variable inside your query
$sql = "SELECT * FROM userregisterinfo WHERE id = " . mysqli_real_escape_string($loggedInUserId);
So you can get only one row from the table with data of particular user