added validation for distance and moveweight