added validations and names to pins