Validate pin