added validation to rewrite url
updated package