validating the movement