Add validation for pins and users