Separate input validation from plot value retrieval