Include 'id' attribute for inputs

See #335