Assign query string value from params to input after page reload