update identity spec
add validations to identity