Update thread.php

change validate_between to validate_length