Fixed valid method to account for Time.new returning 4-digit year