Validate frontend app response

comment block describing the function+arguments please.