change resource
clean code
add PK_REGEX contant for validate pk